package com.ethink.order.api.info;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author default
 * @version 1.0.0
 * @ClassName PurchaseTransferReturnInfo.java
 * @Description
 * @createTime 2022年12月07日 17:41:00
 */
@Data
public class PurchaseTransferReturnInfo {

    @Schema(description = "唯一值")
    private Integer key;

    @Schema(description = "采购单号")
    private String purchaseOrderNo;

    @Schema(description ="采购详情单号")
    private String purchaseDetailOrderNo;

    @Schema(description ="商品编码")
    private String mateCode;

    @Schema(description ="商品名称")
    private String mateName;

    @Schema(description ="商品SKU")
    private String mateSku;

    @Schema(description ="商品sku")
    private String mateSkuName;

    @Schema(description ="商品分类")
    private String categoryName;

    @Schema(description ="品牌编码")
    private String brandCode;

    @Schema(description ="品牌名称")
    private String brandName;

    @Schema(description ="包装单位编码")
    private String unitCode;

    @Schema(description ="包装单位编码")
    private String unitName;

    @Schema(description ="商品规格")
    private String productSpecification;

    @Schema(description ="采购报价")
    private BigDecimal purchasePrice;

    @Schema(description = "采购数量")
    private Integer lockOrderQty;

    @Schema(description ="采购批次")
    private String purchaseCode;

    @Schema(description ="枚举 库存类型:1-正品(zp)|2-瑕疵(cc)")
    private Integer inventoryType;

    @Schema(description ="到期时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date expireDate;

    @Schema(description ="生产批次")
    private String produceCode;

    @Schema(description ="原产国")
    private String countryOfOrigin;

    @Schema(description ="商品生产日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date productDate;

    @Schema(description ="可用库存(可退数量)")
    private Integer availableQty;

    @Schema(description ="分仓编号")
    private String subWarehouseCode;

    @Schema(description ="分仓名称")
    private String subWarehouseName;

    @Schema(description ="库存id")
    private Long mateInventoryId;


}
